#2020年省赛-填空题 跑步锻炼
import datetime
a = datetime.datetime(2000, 1, 1)
b = datetime.datetime(2020, 10, 1)
c = 0
while a <= b:
    #day是属性，不可()调用；weekday()是方法，需要()调用
    if a.day == 1 or a.weekday() == 0:
        c += 2
    else:
        c += 1
    a += datetime.timedelta(days = 1)
print(c)